package com.teemor.common.kafka.fc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Description:
 * @author zhoulk
 * @date: 2019/12/10
 */
@FeignClient(value = "resource", path = "/sms")
public interface ISmsFc {

    @PostMapping(value = "/sendMsg", consumes = MediaType.APPLICATION_JSON_VALUE)
    Map<String,Object> sendSmsMsg(@RequestParam("content") String content, @RequestParam("mobile") String mobile);
}
